<!DOCTYPE html>
<html lang="zh">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
	<title>教师后台 - 家校互动系统</title>
	<link rel="shortcut icon" href="favicon.ico" />
	<link href="__TMPL__css/alice.css" rel="stylesheet" type="text/css" />
	<link href="__TMPL__css/style.css" rel="stylesheet" type="text/css" />
	<script src="__TMPL__js/jquery.min.js"></script>
	<script src="__TMPL__js/head.js"></script>
    <script src="__TMPL__js/jqprint.js"></script>
    <script>
	function printarea()
	{
		$("div.content").printArea();
		
	}
	</script>
	
    <script>
	
	$(document).ready(function(e) {
	$("#level_id").change(function ()
	{
		 lv_id = $('#level_id').find('option:selected').val();
		 term = $('#term').find('option:selected').val();
		 changeexam(lv_id,term);
		 
	});
	$("#term").change(function ()
	{
		 lv_id = $('#level_id').find('option:selected').val();
		 term = $('#term').find('option:selected').val();
		 changeexam(lv_id,term);
		 
	});
	});
	function changeexam(lv_id,term)
	{
		$("#exam_id").empty();
		$("#exam_id").append("<option value=''>选择考试</option>");
		$.getJSON("__URL__/loadexam/lv_id/"+lv_id+"/term/"+term,function(result){
		$.each(result, function(i, field){
		  $("#exam_id").append("<option value='"+field['id']+"'>"+field['exam_name']+"</option>");
		});
	  });
	}
	</script>
	<!--[if lt IE 9]>
	<script src="__TMPL__js/html5.js"></script>
	<![endif]-->
</head> 
<body onload="iframe_height()">
<div id="bodyheight"><!-- 设定iframe框架 --> 

<div style="width:100%">
	<a class="btn_back" href="__URL__/nav" style="width:20%">学生成绩</a> <!-- 当前位置 返回按钮 -->
</div>

	
	<!-- 内容框架开始 -->
	<div class="main padd6">
		<div class="tab_main clear">
			<a href="score_man.html" class="cur">成绩管理</a>
			<a href="score_import.html">导入成绩</a>
		</div>
	
		<div class="realmain padd11 clear">
		
			<!-- 头部工具栏开始 -->
			<div class="main-nav">
				<form class="ui-form" name="search_content" method="post" action="#" id="search_content">
					<div class="ui-form-item">
						<label for="" class="ui-label">年级：</label>
						<select name="level_id" id="level_id">
						    <option value="">选择年级</option>
                             <volist name="levellist" id="vo">
						    <option value="{$vo.id}">{$vo.level_name}</option>
					      </volist>
                          </select>
					</div>
					<div class="ui-form-item">
						<label for="" class="ui-label">考试时段：</label>
						<select name="term" id="term">
<option value="">选择学期</option>
<option value="1">上学期</option>
<option value="2">下学期</option>
</select>
					</div>
					<div class="ui-form-item">
						<label for="" class="ui-label">考试名称：</label>
						<select name="exam_id" id="exam_id">
<option value="">选择考试</option>
</select>
					</div>
					<div class="ui-form-item">
						<label for="" class="ui-label">学生姓名：</label><input name="name" type="text" class="ui-input" id="name" size="12">
					</div>
					<div class="ui-form-item">
						&nbsp;<input type="submit" class="ui-button btn-search" value="搜索">
					</div>
				</form>
				
				<a href="__URL__/score_add" class="ui-button btn-green flright" style="margin:7px;"><span class="icolink icoadd">发布成绩</span></a>
				<a href="#" onClick="printarea()"  class="ui-button ui-button-morange flright" style="margin:7px;padding:0 10px"><span class="icolink">打印</span></a>
				
			</div>
			<!-- 头部工具栏结束 -->
			
			<!-- 列表内容开始 -->
			<div class="content">
				<form name="content_form" id="content_form" action="" method="post">
                <table class="ui-table">
					<thead>
						<tr>
							<th>学号</th>
							<th>姓名</th>
							<th>班级</th>
						</tr>
					</thead><!-- 表头可选 -->
					<tbody>
                     <volist name="list" id="vo">
						<tr>
							<td>{$vo.XH}</td>
							<td>{$vo.XM}</td>
							<td>{$vo.class_id|getinfo=###,'class','class_name'}</td>
						</tr>
                        
						<tr>
						  <td colspan="3">
                        <iframe src="__URL__/loadresult/sid/{$vo.id}/exam_id/{$exam_id}" width="100%" height="100%" scrolling="no" ></iframe>
                </td>
					   </tr>
                     
                     </volist> 
					</tbody>
				</table>
				
				
				<div class="content_foot clear">
					<a href="#" class="ui-button btn-grey" onclick="content_form.action='#';return confirm_delete()"  style="float:left;display:block;"><span class="icolink icodel">删除</span></a>
					<div id="pages">{$page}
						
				  </div>
				</div>
				</form>
			</div>
			<!-- 列表内容结束 -->
			
		</div>
	</div>
	<!-- 内容框架结束 -->
</div>

<iframe width='0' id='top_src' height='0' src=''></iframe>
<include file="Public:foot" />
</body>
</html>